package com.ag.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * TbPlanKeyword entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TB_PLAN_KEYWORD", schema = "dbo", catalog = "AGDB")
public class TbPlanKeyword implements java.io.Serializable {

	// Fields

	private String pkId;
	private TbPlan tbPlan;
	private String pkContent;
	private String a;
	private String b;
	private String c;

	// Constructors

	/** default constructor */
	public TbPlanKeyword() {
	}

	/** minimal constructor */
	public TbPlanKeyword(String pkId, String pkContent) {
		this.pkId = pkId;
		this.pkContent = pkContent;
	}

	/** full constructor */
	public TbPlanKeyword(String pkId, TbPlan tbPlan, String pkContent,
			String a, String b, String c) {
		this.pkId = pkId;
		this.tbPlan = tbPlan;
		this.pkContent = pkContent;
		this.a = a;
		this.b = b;
		this.c = c;
	}

	// Property accessors
	@Id
	@Column(name = "PK_ID", unique = true, nullable = false, length = 10)
	public String getPkId() {
		return this.pkId;
	}

	public void setPkId(String pkId) {
		this.pkId = pkId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "P_ID")
	public TbPlan getTbPlan() {
		return this.tbPlan;
	}

	public void setTbPlan(TbPlan tbPlan) {
		this.tbPlan = tbPlan;
	}

	@Column(name = "PK_CONTENT", nullable = false, length = 500)
	public String getPkContent() {
		return this.pkContent;
	}

	public void setPkContent(String pkContent) {
		this.pkContent = pkContent;
	}

	@Column(name = "A", length = 60)
	public String getA() {
		return this.a;
	}

	public void setA(String a) {
		this.a = a;
	}

	@Column(name = "B", length = 60)
	public String getB() {
		return this.b;
	}

	public void setB(String b) {
		this.b = b;
	}

	@Column(name = "C", length = 60)
	public String getC() {
		return this.c;
	}

	public void setC(String c) {
		this.c = c;
	}

}